public class java0601 {
    public static void main(String[] args) {
        Dog dog3 = new Dog(10,"旺财","金毛");

        System.out.println(dog3);

    }



    public static void swap(Dog a, Dog b){
        int temp =a.num;
         a.num= b.num;
         b.num=temp;
    }

//    public static void main1(String[] args) {
//        Dog a = new Dog();
//        a.num = 80;
//        Dog b = new Dog();
//        b.num = 40;
//        System.out.println(a.num+" "+b.num);
//        swap(a,b);
//        System.out.println(a.num+" "+b.num);
//    }


}
